package com.gmall.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gmall.model.activity.CouponInfo;
import com.gmall.model.activity.dto.SkuCoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponInfoMapper extends BaseMapper<CouponInfo> {
    List<SkuCoupon> getCouponListBySku(@Param("userId") Long userId,
                                       @Param("skuId") Long skuId,
                                       @Param("spuId") Long spuId,
                                       @Param("tmId") Long tmId,
                                       @Param("category3Id") Long category3Id);
}
